package com.cz.run.exception;

/**
 * @Description: TODO()
 * @auther:CAIYJ
 * @Date:2018/5/21 10:37
 */
public class RunException extends RuntimeException {
    private Throwable throwable;

    private Integer errorCode;

    public RunException(Throwable throwable) {
        super(throwable);
    }

    public RunException(Integer errorCode, String message,
                        Throwable throwable) {
        super(message, throwable);
        this.errorCode = errorCode;
    }

    public RunException() {
        super();
    }

    public Throwable getThrowable() {
        return throwable;
    }

    public void setThrowable(Throwable throwable) {
        this.throwable = throwable;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }
}
